projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05be102
)
use format.bytes_per_pixel
author
Øyvind Kolås
<ok@src.gnome.org>
Fri, 26 Aug 2005 13:47:53 +0000
(13:47 +0000)
committer
Øyvind Kolås
<ok@src.gnome.org>
Fri, 26 Aug 2005 13:47:53 +0000
(13:47 +0000)
tests/babl-html-dump.c
patch
|
blob
|
history
diff --git
a/tests/babl-html-dump.c
b/tests/babl-html-dump.c
index 15bae5b01a8a9d04685db38422bb3c2685d67cf0..e26e5a7b50aa4ae6c0dafcb5c7ec961f695c6937 100644
(file)
--- a/
tests/babl-html-dump.c
+++ b/
tests/babl-html-dump.c
@@
-100,14
+100,7
@@
format_html (Babl *babl)
int i;
printf ("<td valign='top'>");
- {
- int bytes=0;
- for (i=0; i< babl->format.components; i++)
- {
- bytes += BABL(babl->format.type[i])->type.bits/8;
- }
- printf ("<span class='name'>%i</span>", bytes);
- }
+ printf ("<span class='name'>%i</span>", babl->format.bytes_per_pixel);
printf ("</td>");
printf ("<td valign='top'>");
printf ("<span class='name'>%s</span>", BABL(babl->format.model)->instance.name );